﻿@inherits Project.Module.View.CMS.CMSQuanLyTaiKhoan
@{
    ViewBag.Title = "Quản lý nhóm quyền";
    Layout = "~/Views/Backend/Home/_Master.cshtml";
}
<h1>Quản lý tài khoản</h1>
<table height="20px"></table>
@*<FORM METHOD="POST" ACTION="/ADMIN/ADMIN-NGUOI-DUNG">
   <DIV>
   <TABLE BORDER="0">
        	<TR>
            	<TD>USERNAME</TD>
            	<TD> <INPUT TYPE="TEXT" value="" NAME="KEYWORDUSERNAME" /></TD>
            </TR>
            <TR HEIGHT="10PX"></TR>
            <TR>
            	<TD>EMAIL&NBSP;&NBSP;</TD>
            	<TD><INPUT TYPE="TEXT" value="" NAME="KEYWORDEMAIL" /></TD>
            </TR>
            <TR HEIGHT="10PX"></TR>
            <TR>
            	<TD><INPUT TYPE="SUBMIT" VALUE="" CLASS="SEARCH-FORM" /></TD>&NBSP;&NBSP;
            </TR>
   </TABLE>
   </DIV>
</FORM>
*@
<form method="post" action ="/admin/admin-nguoi-dung">
<table border="0">

        	<tr>

            	<td>Tên đăng nhập&nbsp;&nbsp;</td>

            	<td><INPUT TYPE="TEXT" value="" NAME="KEYWORDUSERNAME" /></td>

                <td>Email&nbsp;&nbsp;</td>

            	<td><INPUT TYPE="TEXT" value="" NAME="KEYWORDEMAIL" /></td>

                <td>Chức vụ&nbsp;&nbsp;&nbsp;&nbsp;</td>

                <td>

           			 <select  class="styledselect_form_1">

                        <option value=""> Quản lý</option>

                        <option value=""> NV Bán hàng</option>

                        <option value=""> NV Giao hàng</option>

                        <option value=""> Khách hàng</option>

                	</select> 

            	</td>

            </tr>

            <tr height="10px"></tr>

            <tr>

            	<td>Họ và tên</td>

            	<td><input type="text" class="inp-form" /></td>

                <td>Năm sinh&nbsp;&nbsp;</td>

            	<td><input type="text" class="inp-form" /></td>

            </tr>

            <tr height="10px"></tr>

            <tr>

            <td>Giới tính</td>

            <td>

           			 <select  class="styledselect_form_2">

                        <option value=""> Nam</option>

                        <option value=""> Nữ</option>

                	</select> 

            </td>

            <td>Ngày đăng ký&nbsp;&nbsp;</td>

            	<td><input type="text" class="inp-form" /></td>

             </tr>

            <tr>

            	<td><input type="submit" value="" class="search-form" /></td>

            </tr>

        </table>
       
</form>
<table height="20px"></table>

<table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
    @if (this.listEmployee != null && this.listEmployee.Count > 0) 
    { 
      		<tr>

					<th class="table-header-check"><a id="toggle-all" ></a> </th>

                    <th class="table-header-repeat line-left "><a href="">Tên đăng nhập</a>	</th>

					<th class="table-header-repeat line-left "><a href="">Họ Tên</a></th>

                    <th class="table-header-repeat line-left"><a href="">Giới tính</a></th>

					<th class="table-header-repeat line-left"><a href="">Email</a></th>

					<th class="table-header-repeat line-left"><a href="">Ngày đăng ký</a></th>

                    <th class="table-header-repeat line-left"><a href="">Ngày sinh</a></th>

					<th class="table-header-repeat line-left"><a href="">Chức vụ</a></th>

                    <th class="table-header-repeat line-left"><a href="">Phân quyền</a></th>

                    <th class="table-header-repeat line-left"><a href="">Chỉnh/Xóa</a></th>

				</tr>

        foreach (var item in this.listEmployee)
        { 
            <tr>
            <td><input  type="checkbox"/></td>
            <td>@item.username</td>
         @* full name   
         
            <td>@item.username</td> 

         *@
         <td>@item.firstname @item.lastname</td>  
          @* gioitinh  
         
            <td>@item.username</td> 

         *@
         <td>@item.sex</td> 

            <td>@item.mail</td>
             @* ngay dang ky  *@

            <td>@item.JoinDate.ToString("dd/MM/yyyy")</td>
            @* ngay sinh  *@
            <td>@item.Birthdate.ToString("dd/MM/yyyy")</td>
              @* Chức vụ  *@
            <td>@item.position</td>
                @* phân quyền  *@
            <td>thay đổi</td>
          @*  <td><a href="/admin/dang-ki-tai-khoan">Tạo mới</a></td>
            <td><a href="/admin/quan-ly-nhom-quyen/edit?id=@item.EmployeeID">Chỉnh sửa</a></td>
            <td><a href="/admin/quan-ly-nhom-quyen/del?id=@item.EmployeeID">Xóa</a></td>
            *@
            <td><a href="/admin/quan-ly-nhom-quyen/edit?id=@item.EmployeeID">Chỉnh sửa/</a>
            <a href="/admin/quan-ly-nhom-quyen/del?id=@item.EmployeeID">Xóa</a></td>
            </tr>
        
           }
    }
  
    

    
</table>
 <table height="20px"></table>
  <input type="button" value="" class="add-form" onclick="addUser()">
  <script type="text/jscript">
      function addUser() {
          window.location.href = "/admin/dang-ki-tai-khoan";
      }

</script>

<!--  end product-table................................... -->
